Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.poll.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.poll.contentviews inside nuxeo-poll-web-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="polls_listing">
    
          <title>label.contentview.poll.listing</title>
          <translateTitle>true</translateTitle>
          <showTitle>false</showTitle>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:parentId = ?
              AND ecm:currentLifeCycleState != 'deleted'
            </pattern>
            <parameter>#{pollActions.pollsContainer.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{pollActions.pollsContainer.id}</cacheKey>
          <cacheSize>10</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="polls_listing">

      <title>label.contentview.poll.listing</title>
      <translateTitle>true</translateTitle>
      <showTitle>false</showTitle>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:parentId = ?
          AND ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <parameter>#{pollActions.pollsContainer.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{pollActions.pollsContainer.id}</cacheKey>
      <cacheSize>10</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>
    </contentView>

  </extension>